package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * sso相关配置
 *
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "oauth")
public class SsoConfig {
    /**
     * tenantId
     */
    private static String tenantId;
    /**
     * clientId
     */
    private static String clientId;
    /**
     * clientSecret
     */
    private static String clientSecret;
    /**
     * grantType
     */
    private static String grantType;
    /**
     * redirectUri
     */
    private static String redirectUri;
    /**
     * responseType
     */
    private static String responseType;
    /**
     * scope
     */
    private static String scope;
    /**
     * authorizeRequestUrl
     */
    private static String authorizeRequestUrl;
    /**
     * tokenRequestUrl
     */
    private static String tokenRequestUrl;
    /**
     * userInfoRequestUrl
     */
    private static String userInfoRequestUrl;

    private static String ssoReload;

    private static String responseMode;

    private static String state;

    private static String approalClientId;

    private static String approalClientSecret;

    private static String approalRedirectUri;

    public static String getApproalClientId() {
        return approalClientId;
    }

    public void setApproalClientId(String approalClientId) {
        SsoConfig.approalClientId = approalClientId;
    }

    public static String getApproalClientSecret() {
        return approalClientSecret;
    }

    public void setApproalClientSecret(String approalClientSecret) {
        SsoConfig.approalClientSecret = approalClientSecret;
    }

    public static String getApproalRedirectUri() {
        return approalRedirectUri;
    }

    public void setApproalRedirectUri(String approalRedirectUri) {
        SsoConfig.approalRedirectUri = approalRedirectUri;
    }

    public static String getState() {
        return state;
    }

    public void setState(String state) {
        SsoConfig.state = state;
    }

    public static String getResponseMode() {
        return responseMode;
    }

    public void setResponseMode(String responseMode) {
        SsoConfig.responseMode = responseMode;
    }

    public static String getSsoReload() {
        return ssoReload;
    }

    public void setSsoReload(String ssoReload) {
        SsoConfig.ssoReload = ssoReload;
    }

    public static String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        SsoConfig.tenantId = tenantId;
    }

    public static String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        SsoConfig.clientId = clientId;
    }

    public static String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        SsoConfig.clientSecret = clientSecret;
    }

    public static String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        SsoConfig.grantType = grantType;
    }

    public static String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        SsoConfig.redirectUri = redirectUri;
    }

    public static String getResponseType() {
        return responseType;
    }

    public void setResponseType(String responseType) {
        SsoConfig.responseType = responseType;
    }

    public static String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        SsoConfig.scope = scope;
    }

    public static String getAuthorizeRequestUrl() {
        return authorizeRequestUrl;
    }

    public void setAuthorizeRequestUrl(String authorizeRequestUrl) {
        SsoConfig.authorizeRequestUrl = authorizeRequestUrl;
    }

    public static String getTokenRequestUrl() {
        return tokenRequestUrl;
    }

    public void setTokenRequestUrl(String tokenRequestUrl) {
        SsoConfig.tokenRequestUrl = tokenRequestUrl;
    }

    public static String getUserInfoRequestUrl() {
        return userInfoRequestUrl;
    }

    public void setUserInfoRequestUrl(String userInfoRequestUrl) {
        SsoConfig.userInfoRequestUrl = userInfoRequestUrl;
    }
}
